Skip to main content

FR-01.010.Advanced Periodical Tasks

  • Ones
{
from: "09:00:00",
until: "23:59:59",
every: 0,
period: "ones",
stop_after: null,
weekdays: [],
days: 0,
months: []
}
  • Every [1..364] day
{
from: "09:00:00",
until: "23:59:59",
every: N,
period: "day",
stop_after: null,
weekdays: [],
days: 0,
months: []
}
  • Every [1..51] week by [Su, Mo, Tu, We, Th, Fr, Sa]
{
from: "09:00:00",
until: "23:59:59",
every: N,
period: "week",
stop_after: null,
// Su Mo Tu We Th Fr Sa
weekdays: [false,true, true, true, true, true, false],
days: 0,
months: []
}
  • Every [1-11] month
    • by [1st..31th day, last day, last workday]
    • by 1-27 day before last day, last workday
    • by first workday
    • by last workday
{
from: "09:00:00",
until: "23:59:59",
every: 1, // every [1-11]
period: "month",
stop_after: null,
weekdays: [],
days: 1, // 1-31 days;
// 32 = last workday; 33 = last day; 99 = first workday
months: []
}
  • Every [1-11] month
    • on [Su, Mo, Tu, We, Th, Fr, Sa] in the 1st, 2nd, 3rd, 4th, 5th, Last week
{
from: "09:00:00",
until: "23:59:59",
every: 1, // every 1 month
period: "month",
stop_after: null,
weekdas: [false,true, true, true, true, true, false], // on Mo..Fr
days: 2, // in the 2nd week
// >5 -- last week
months: []
}
  • Every [1..99] year
    • by 1-30 | last day of the [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
// Jan 2 every two year
{
from: "09:00:00",
until: "23:59:59",
every: 2, // every 2 year
period: "year",
stop_after: null,
weekdas: [],
days: 2, // 2 date
months: [
true, false, false, // January
false, false, false,
false, false, false,
false, false, false
]
}
  • Every [1..99] year
    • on [Su, Mo, Tu, We, Th, Fr, Sa] in the [1st], [2nd], [3rd], [4th], [Last week] of the [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
// Each year on Sunday in the 2nd week of January
{
from: "09:00:00",
until: "23:59:59",
every: 1, // every 1 year
period: "year",
stop_after: null,
weekdas: [true, false, false, false, false, false, false], // on Sunday
days: 2, // in the 2nd week
// >5 -- last week
months: [
true, false, false, // Jan, Feb, Mar, (in the January)
false, false, false, // Apr, May, Jun,
false, false, false, // Jul, Aug, Sep,
false, false, false // Oct, Nov, Dec
]
}
  • Every [1..99] year
    • by 1-27 | last workday of the [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]